﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/MenuMaster.Master" AutoEventWireup="true"
    CodeBehind="ViewAllRoles.aspx.cs" Inherits="Department.admin.Membership.ViewAllRoles" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="page-heading">
        <h1>
            Всички роли</h1>
    </div>
    <!-- end page-heading -->
    <table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
        <tr>
            <th rowspan="3" class="sized">
                <img src="../images/shared/side_shadowleft.jpg" width="20" height="300" alt="" />
            </th>
            <th class="topleft">
            </th>
            <td id="tbl-border-top">
                &nbsp;
            </td>
            <th class="topright">
            </th>
            <th rowspan="3" class="sized">
                <img src="../images/shared/side_shadowright.jpg" width="20" height="300" alt="" />
            </th>
        </tr>
        <tr>
            <td id="tbl-border-left">
            </td>
            <td>
                <!--  start content-table-inner ...................................................................... START -->
                <div id="content-table-inner">
                    <!--  start table-content  -->
                    <div id="table-content">
                        <form id="mainform" action="">
                        <table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">
                            <tr>
                                <th class="table-header-check">
                                    <asp:CheckBox ID="toggleall" runat="server" AutoPostBack="True" OnCheckedChanged="toggleall_CheckedChanged" />
                                </th>
                                <th class="table-header-repeat line-left minwidth-1">
                                    <asp:LinkButton ID="sortByName" OnCommand="sortByHeading_Click" CommandArgument="Name"
                                        runat="server">Роли</asp:LinkButton>
                                </th>
                                <th class="table-header-options line-left">
                                    <a href="">Действия</a>
                                </th>
                            </tr>
                            <asp:ListView ID="itemsView" runat="server" InsertItemPosition="LastItem" OnItemCommand="itemsView_ItemCommand">
                                <ItemTemplate>
                                    <tr style="">
                                        <td>
                                            <asp:CheckBox ID="CheckBoxIsMarked" runat="server" />
                                        </td>
                                        <td>
                                            <asp:Label ID="NameLabel" runat="server" Text=' <%# Container.DataItem.ToString() %>' />
                                        </td>
                                        <td class="options-width">
                                            <asp:LinkButton ID="DeleteButton" title="Изтрий" runat="server" CommandName="DeleteARole"
                                                class="icon-2 info-tooltip" />
                                     
                                        </td>
                                    </tr>
                                </ItemTemplate>
                                <InsertItemTemplate>
                                    <tr class="insert">
                                        <td>
                                            <asp:CheckBox ID="CheckBoxIsMarked" runat="server" />
                                        </td>
                                        <td>
                                            Нова роля:
                                            <asp:TextBox ID="txtName" runat="server" />
                                        </td>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ValidationExpression="[a-zA-Zа-яА-Я0-9._\s\S]{3,50}"
                                      ControlToValidate="txtName"></asp:RegularExpressionValidator>
                                        <td>
                                            <span onclick="return confirm('Сигурни ли сте, че искате да добавите нова роля?')">
                                                <asp:LinkButton ID="btnInsert" runat="server" CommandName="Save" Text="Добави" />
                                            </span>
                                        </td>
                                    </tr>
                                </InsertItemTemplate>
                                <AlternatingItemTemplate>
                                    <tr style="" class="alternate-row">
                                        <td>
                                            <asp:CheckBox ID="CheckBoxIsMarked" runat="server" />
                                        </td>
                                        <td>
                                            <asp:Label ID="NameLabel" runat="server" Text=' <%# Container.DataItem.ToString() %>' />
                                        </td>
                                        <td class="options-width">
                                            <asp:LinkButton ID="DeleteButton" title="Изтрий" runat="server" CommandName="DeleteARole"
                                                class="icon-2 info-tooltip" />
                                        </td>
                                    </tr>
                                </AlternatingItemTemplate>
                            </asp:ListView>
                        </table>
                        <asp:DataPager ID="DataPagerListView" runat="server" PageSize="10" PagedControlID="itemsView">
                            <Fields>
                                <asp:NumericPagerField ButtonType="Link" NextPageText="" PreviousPageText="" ButtonCount="999999" />
                            </Fields>
                        </asp:DataPager>
                        </form>
                    </div>
                    <!--  end content-table  -->
                    <div class="clear">
                    </div>
                </div>
                <!--  end content-table-inner ............................................END  -->
            </td>
            <td id="tbl-border-right">
            </td>
        </tr>
        <tr>
            <th class="sized bottomleft">
            </th>
            <td id="tbl-border-bottom">
                &nbsp;
            </td>
            <th class="sized bottomright">
            </th>
        </tr>
    </table>
    <div class="clear">
        &nbsp;</div>
    <!--  end content -->
</asp:Content>
